package modelLayer;

import java.util.ArrayList;

public class PresetContainer {
	private static PresetContainer instance;
	private ArrayList<ArrayList<Flavour>> graphPresets;
	
	private PresetContainer(){
		graphPresets = new ArrayList<ArrayList<Flavour>>();
	}
	
	public static PresetContainer getInstance(){
		if(instance == null){
			instance = new PresetContainer();
		}
		
		return instance;
	}
	
	public void addPreset(ArrayList<Flavour> preset){
		graphPresets.add(preset);
	}
	
	public ArrayList<Flavour> getPreset(int id){
		return graphPresets.get(id);
	}
	
	public ArrayList<ArrayList<Flavour>> getPresets(){
		return graphPresets;
	}
	
	public void removePreset(int id) throws IndexOutOfBoundsException{
		graphPresets.remove(id);
	}	

}
